﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AMS.DataAccess.Sql
{
    /// <summary>
    /// 构造IN表达式，候选值为Enum类型。
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class SqlEnumConditionList<T> : SqlConditionList
    {
        /// <summary>
        /// IN表达式，候选值为Enum类型
        /// </summary>
        /// <param name="column">列名</param>
        /// <param name="values">候选值列表</param>
        public SqlEnumConditionList(string column, ICollection<T> values)
        {
            BuildContent(column, SqlStringUtils.EnumListToString<T>(values));
        }
    }
}
